<?php

namespace App\Http\Presenters;

use Laracasts\Presenter\Presenter;

class WarehousePresenter extends Presenter
{

    public function nameType()
    {
        switch ($this->type) {
            case 0:
                return '<span class="orange">儿童</span>';
                break;
            case 1:
                return '<span class="blue">成人</span>';
                break;
            default:
                break;
        }
    }


    public function nameStatus()
    {
        switch ($this->status) {
            case 1:
                return '<span class="green">正常</span>';
                break;
            case 0:
                return '<span class="grey">未发布</span>';
                break;
            default:
                break;
        }
    }


    public function nameSequence()
    {
        switch ($this->sequence) {
            case 1:
                return '<span class="">顺序出题</span>';
                break;
            case 0:
                return '<span class="">随机出题</span>';
                break;
            default:
                break;
        }
    }


}
